# 列表推导式
list1 = [i for i in range(10)]
print(list1)
# 生成器表达式
list2 = (i for i in range(10))
print(list2)

for i in list1:
    print(i)
print('--'*20)
for i in list2:
    print(i)
print('--'*20)
